package org.bluweb.g4wicket;

import org.apache.wicket.Component;

public class G4WicketEvent {

	private Component component;
	private String event;
	
	public G4WicketEvent(Component component, String event) {
		this.component = component;
		this.event = event;
	}

	public Component getComponent() {
		return component;
	}

	public String getEvent() {
		return event;
	}
	
	public static G4WicketEvent onclick( Component component ) {
		
		return new G4WicketEvent( component, "onclick" );
	}
}
